﻿/*=======================================================================================
	TASK 1:                                                  {Strings And Text Processing}
	Write a program that reads a string, reverses it and prints the result at the console.
    Example: "sample" => "elpmas".
========================================================================================*/

using System;

class StringInReverse
{
    static void Main()
    {
        //takes input
        Console.WriteLine("Enter a string:");
        string input = Console.ReadLine();

        //converts the input string to char array
        char[] inputArr = input.ToCharArray();

        //reverses the char array
        Array.Reverse(inputArr);
        string input2 = new string(inputArr);

        Console.WriteLine(input2);
    }
}
